package com.pgmmers.radar.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "engine_abstraction")
public class AbstractionPO {

    @TableId(value = "ID")
    private Long id;

    @TableField("NAME")
    private String name;

    @TableField("LABEL")
    private String label;

    @TableField("MODEL_ID")
    private Long modelId;

    @TableField("AGGREGATE_TYPE")
    private Integer aggregateType;
    @TableField("SEARCH_FIELD")
    private String searchField;

    @TableField("SEARCH_INTERVAL_TYPE")
    private Integer searchIntervalType;
    @TableField("SEARCH_INTERVAL_VALUE")
    private Integer searchIntervalValue;

    @TableField("FUNCTION_FIELD")
    private String functionField;

    @TableField("RULE_SCRIPT")
    private String ruleScript;

    @TableField("RULE_DEFINITION")
    private String ruleDefinition;

    @TableField("STATUS")
    private Integer status;
    @TableField("COMMENT")
    private String comment;
    @TableField("CREATE_TIME")
    private Date createTime;
    @TableField("UPDATE_TIME")
    private Date updateTime;

}